package com.hjt.gulimall.ware.feign;

import com.hjt.common.to.ware.SkuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程掉用商品服务接口
 * @author:97007
 * @date:2021/9/15 11:24
 */
@FeignClient(value = "gulimall-product")
public interface ProductFeign {

    // 获取sku信息
    @RequestMapping("/product/skuinfo/info/{skuId}")
    SkuInfoTo info(@PathVariable("skuId") Long skuId);


}
